<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta content="zh-cn" http-equiv="Content-Language" />
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
		<meta name="renderer" content="webkit"/>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0,  user-scalable=no"/>
		<title>{%$lngpack.sitename%}</title>
		<meta name="keywords" content="{%$lngpack.keyword%}" />
		<meta name="description" content="{%$lngpack.description%}" />
		<link rel="icon" type="image/png" href="{%$icon_16%}" sizes="16x16"/>
		<link rel="icon" type="image/png" href="{%$icon_32%}" sizes="32x32"/>
		<link rel="icon" type="image/png" href="{%$icon_64%}" sizes="64x64"/>
		<link href="{%$rootpath%}css/bootstrap.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcmsp8_font.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/swiper.min.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcmsp8_all.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcms_p8_public.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/jquery.min.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/bootstrap.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/swiper.min.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_base.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_dialog.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_formvalidation.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/citydb.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/cityselect.js"></script>
		<script type="text/javascript" src="{%$rootdir%}js/My97DatePicker/WdatePicker.js"></script>
	</head>

	<body>
		{%link file="public/head.html"%}
		<section class="bann_container">
			<div class="container page_bann_title">
				<h2>会员中心</h2>
			</div>
		</section>

		<section class="container espcms_page_book">
			<div class="row">
				<div class="col-xs-12 col-sm-12 col-md-3">
					{%list name=memmenu%}
				</div>
				<div class="col-xs-12 col-sm-12 col-md-9">
					<div class="panel panel-info espcms_member_page">
						<div class="panel-heading"><h3>我的订单</h3></div>
						{%if count($array) > 0%}
						<table class="table table-bordered tc table-hover">
							<thead>
								<tr class="active">
									<th class="tc">订单编号</th>
									<th class="tc">金额</th>
									<th class="tc">支付状态</th>
									<th class="tc">处理状态</th>
									<th class="tc">时间</th>
									<th class="tc">操作</th>
								</tr>
							</thead>
							<tbody>
								{%forlist from=$array key=i%}
								<tr>
									<td class="td02 tc">{%$array[i].ordersn%}</td>
									<td class="td02 tc">{%$array[i].orderamount|espcms_format_money(3)%}</td>
									<td class="td02 tc">
										{%if $array[i].ispay==1%}<span class="text-green">已支付</span>{%/if%}
										{%if $array[i].ispay==2%}<span class="text-green">已支付</span>{%/if%}
										{%if $array[i].ispay==0%}<span class="text-orange">未支付</span>{%/if%}
									</td>
									<td class="td02 tc">
										{%if $array[i].ordertype==0%}<span class="text-danfei">作废</span>{%/if%}
										{%if $array[i].ordertype==1%}<span class="text-orange">新订单</span>{%/if%}
										{%if $array[i].ordertype==2%}<span class="text-green">已处理</span>{%/if%}
									</td>
									<td class="td02 tc">{%$array[i].addtime|espcms_timeformat(3)%}</td>
									<td class="td02 tc">
										<a href="{%$array[i].view%}" target="_blank" class="btn btn-success btn-sm">查看</a>
										{%if $array[i].ordertype>0%}
										{%if $array[i].ispay==0%}<a class="btn btn-warning btn-sm ml5" href="{%$array[i].paylink%}">支付</a>{%/if%}
										{%if $array[i].islock==0 && $array[i].ordertype==1%}<a href="javascript:if (confirm('您确定要取消该订单吗？')) location.href='{%$array[i].cancel%}';" class="btn btn-danger btn-sm ml5">取消</a>{%/if%}
										{%/if%}
										{%if $array[i].islock==0 && $array[i].ordertype==1 && $array[i].ispay==0%}<a href="{%$array[i].edit%}" class="btn btn-info btn-sm ml5">修改</a>{%/if%}
									</td>
								</tr>
								{%/forlist%}
							</tbody>
						</table>
						<div class="espcms_page_botton">
							<span class="btn btn-default">共{%$page_read.db_num%}条/共有{%$page_read.page_num%}页</span> {%$pagebotton%}
						</div>
						{%else%}
						<div class="espcms_page_botton text-center">暂无订单</div>
						{%/if%}
					</div>

				</div>
			</div>
		</section>

		{%link file="public/footer.html"%}
	</body>
</html>